<?
include('custom/dueltabs.php');
include_once('custom/characterlist.php');
if ($this->character->getCharacterStat('HP') > 0 && $this->character->getCharacterStat('AP') > 1+ceil($this->character->level/5))
  $btn = 'Duel';
else
  print('<div class="banner">You need at least '.(1+ceil($this->character->level/5)).' AP and 1 HP to duel someone!</div>');
DisplayCharacterList($this->model->getDuelPartners(), $btn, actionUrl('attack', 'duel', 'id='));
?>
